<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>复制功能演示</title>
    <style>
        /* 基本样式 */
        .container {
            margin: 20px;
            display: flex;
            gap: 10px;
        }
        .input-field {
            padding: 8px;
            width: 300px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .copy-button {
            padding: 8px 16px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .copy-button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
    <div class="container">
        <input type="text" class="input-field" id="inputText" placeholder="请输入文本">
        <button class="copy-button" id="copyButton">复制</button>
    </div>
    <script src="script.js"></script>
</body>
</html> 